-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TST: testing plotly #381
TST: testing plotly #381
Conversation
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Idea: Using # Plotly Example
```{code-cell} ipython3
!pip install plotly
```
An example plot
````{only} html
A plot for HTML
```{code-cell} ipython3
# x and y given as array_like objects
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
```
````
````{only} latex
A plot for LaTeX
```{code-cell} ipython3
import matplotlib.pyplot as plt
x=[0, 1, 2, 3, 4]
y=[0, 1, 4, 9, 16]
plt.scatter(x, y)
```
```` |
There is an issue using Therefore this code
won't work at the moment.
|
Current Workable Solution (Short Term): (plotlyfig)=
```{code-cell} ipython3
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
```
```{only} latex
This figure is interactive you may [click here to see this figure on the website](https://intro.quantecon.org/plotly.html#plotlyfig)
``` Limitations:
|
Closing this as this was a testing ground for |
This is test for
plotly
objects